<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

class Step extends Model {
	public static $rules = [
		'name' => 'required|max:20',
	];
	public static $message = [
		'name.required' => '步骤名称必须填写',
		'name.max' => '步骤名称最多20个字符',
	];
	protected function getDateFormat() {
		return time();
	}
	protected $fillable = [
		'flow_id', 'name', 'role_id',
	];
}
